/*
 * @Author: YCL
 * @Date: 2021-06-28 17:44:56
 * @LastEditTime: 2021-07-01 15:29:57
 * @LastEditors: Author YCl
 * @Description: 
 * @FilePath: \react\my-app\src\router.js
 */
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import nomatch from './nomatch'
import FlexExample from './layout/flex'
import Demo from './data_entry/Datepicker'
import ImagePickerExample from './data_entry/Imagepicker'
import Home from './home'
import PopoverDemo from './navigation/popover'
import NavBar from './navigation/navber'
import ResultExample from './combination/result'
function router() {
    return (
        <Router>

            <Switch>

                <Route path="/" exact component={Home}></Route>
                <Route path="/flex" exact component={FlexExample}></Route>
                <Route path='/datepicker' exact component={Demo}></Route>
                <Route path='/imagepicker' exact component={ImagePickerExample}></Route>
                <Route path='/popover' exact component={PopoverDemo}></Route>
                <Route path='/navbar' exact component={NavBar}></Route>
                <Route path='/result' exact component={ResultExample}></Route>
                <Route component={nomatch} />
            </Switch>
        </Router>
    )
}
export default router;